<template>
  <cml-module
    :moduleName="$t('cmlpanel.console')"
    icon="kongzhitai"
    v-bind="$attrs"
    :defaultOpen.sync="defaultOpen"
  >
    <!-- <logSetting v-cml />
    <vuexSetting v-cml />
    <timeLine v-cml /> -->
    <component
      v-for="(name, index) in $_auth"
      :key="index"
      :is="name"
    ></component>
  </cml-module>
</template>

<script>
import logSetting from './logSetting'
import vuexSetting from './vuexSetting'
import timeLine from './timeLine'
import CmlModule from '../cml-module'
export default {
  name: 'ConsolePanel',
  inheritAttrs: false,
  data() {
    return {
      defaultOpen: false
    }
  },
  components: {
    logSetting,
    vuexSetting,
    CmlModule,
    timeLine
  }
}
</script>

<style lang="scss" scoped>
@import '../../style/panel-var.scss';
@import '../../style/panel-mixin.scss';
</style>
